import request from '@/utils/request'

export function getTurnoverList(query) {
  return request({
    url: '/finance/turnover/getList',
    method: 'post',
    data: query
  })
}
export function getTurnoverUseable(query) {
  return request({
    url: '/finance/turnover/getAvailable',
    method: 'post',
    data: query
  })
}

export function getTurnoverDetail(id) {
  return request({
    url: '/finance/turnover/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveTurnover(id) {
  return request({
    url: '/finance/turnover/save',
    method: 'post',
    data: id
  })
}

export function removeTurnoverByID(id) {
  return request({
    url: '/finance/turnover/delete',
    method: 'post',
    data: id
  })
}

export function changeTurnoverStatusByID(formdata) {
  return request({
    url: '/finance/turnover/change-status',
    method: 'post',
    data: formdata
  })
}

export function getTurnoverAddress(formdata) {
  return request({
    url: '/finance/turnover/getAddress',
    method: 'post',
    data: formdata
  })
}



